package com.hongkzh.www.presenter;

import com.hongkzh.www.view.iview.BaseIView;

/**
 * mvp presenter 基类
 */
public class BasePresenter<I extends BaseIView> {

    private I iView;

    public void attachView(I iView) {
        this.iView = iView;
    }

    public I getIView() {
        return iView;
    }

    public void detachView() {
        if (iView != null) {
            iView = null;
        }
    }
}
